<?php
/**
 * Created by PhpStorm.
 * User: shaoxia
 * Date: 19-12-7
 * Time: 下午4:42
 */
$config = [
    'id' => 'basic-console',
    'basePath' => dirname(__DIR__),
    'bootstrap' => ['log'],
    'timeZone'   => 'Asia/Shanghai',
    'controllerNamespace' => 'example\commands',
    'controllerMap' => [
        'daemon' => [
            'class' => 'zwx\daemon\console\DaemonController',
            'pidFile' => __DIR__.'/../runtime/daemon.pid',
            'daemonConfig' => [
                'masterName' => 'zwx_daemon',
                'workers' => [
                    [
                        'name' => 'user',
                        'controller' => 'user',
                        'key' => 'user',
                        'count' => 1,
                    ],
                    [
                        'name' => 'article',
                        'controller' => 'article',
                        'key' => 'article',
                        'count' => 1
                    ],
                ]
            ],
        ]
    ],
];

return $config;